package anims.XXgt.anim;

import java.util.List;

import javax.swing.JPanel;

public class Animation implements Runnable{

	List<IDrawObject> listOfObj;
	JPanel drawPanel;
	public Animation(List<IDrawObject> listOfObj, JPanel drawPanel){
		this.listOfObj=listOfObj;
		this.drawPanel=drawPanel;
	}
	@Override
	public void run() {
		while (true) {
			moveBall();
			drawPanel.repaint();
			try {
				Thread.sleep(100);
			} catch (InterruptedException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
	}
	private void moveBall() {
		//translation using f^n
//		ball1.translate(-2 ,-2);
	}

}
